home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
diskmags
/
3565-4.665
/
dmg-4385
/
part3
/
install.asc
next >
Wrap
Text File
|
1987-04-21
|
2KB
|
77 lines
10 rem EG extension installer
20 rem By Martin Cubitt
30 rem 15th October 1993
40 rem
50 rem Last update: 17/10/1993
60 rem
100 curs off : palette $0,$0,$0,$0,$0 : mode 0 : key off : hide : flash off
110 pen 7
120 paper 8
130 centre " EG extension installer "
140 pen 9
150 paper 0
160 locate 0,5
170 centre "Select from one of the following"
180 pen 4
190 paper 6
200 locate 0,10
210 centre " 1. Install INTERPRETER extension "
220 locate 0,12
230 centre " 2. Install COMPILER extension "
240 locate 0,15
250 centre " 9. Exit "
260 pen 9
270 paper 0
280 locate 0,19
290 centre "Press the number of your choice"
300 wait vbl
310 palette $113,$777,$0,$0,$632,$273,$321,$362,$231,$557,$666,$333
320 clear key
330 repeat
340 : OPTION=instr("129",inkey$)
350 until OPTION>0
360 on OPTION goto 1000,2000,9000
998 rem ---------------------------------------------------------------
999 rem * INSTALL: Interpreter extension *
1000 FILENAME$="eg.exw"
1010 FILESIZE=691
1020 BANK=5
1030 FOLDNAME$="STOS"
1040 gosub 3000
1050 goto 320
1998 rem ---------------------------------------------------------------
1999 rem * INSTALL: Compiler extension *
2000 FILENAME$="eg.ecw"
2010 FILESIZE=318
2020 BANK=6
2030 FOLDNAME$="COMPILER"
2040 gosub 3000
2050 goto 320
2998 rem ---------------------------------------------------------------
2999 rem * INSTALL: An extension *
3000 FILENAME$=upper$(FILENAME$)
3010 pen 11
3020 locate 0,23
3030 centre "Enter EXIT not to install "+FILENAME$
3040 pen 10
3050 paper 0
3060 MSG$="Select "+FOLDNAME$+" folder"
3070 show
3080 SELECT$=file select$("*.*",MSG$)
3090 hide
3100 locate 0,23
3110 centre space$(len("Enter EXIT not to install "+FILENAME$))
3120 if upper$(SELECT$)="EXIT" then 3160
3130 on error goto 3500
3140 bsave FILENAME$,start(BANK) to start(BANK)+FILESIZE
3150 on error goto 0
3160 return
3499 rem Error, just return to folder select
3500 on error goto 0
3510 resume 3520
3520 boom
3530 goto 3070
8999 rem ---------------------------------------------------------------
9000 default
9010 end